import request from '@/utils/request'

// 查询列表
export function pageList(data) {
  return request({
    url: '/os/user/list',
    method: 'post',
    data: data
  })
}

// 查询详细
export function getInfo(clientId) {
  return request({
    url: '/os/user/' + clientId,
    method: 'get'
  })
}

// 新增
export function add(data) {
  return request({
    url: '/os/user/add',
    method: 'post',
    data: data
  })
}

// 修改
export function update(data) {
  return request({
    url: '/os/user/edit',
    method: 'post',
    data: data
  })
}

// 状态修改
export function changeStatus(id, status) {
  return request({
    url: '/os/user/changeStatus',
    method: 'get',
     params: { id, status }
  })
}

// 删除
export function del(id) {
  return request({
    url: '/os/user/remove/' + id,
    method: 'delete'
  })
}
